<template>
<uni-shadow-root class="partials-banner-firstBanner"><template name="firstBanner">
 
  <block v-if="jsonData.height < 3">
   
    <view class="SwiperContainer" :style="'height:'+(jsonData.height<10?jsonData.height * sysWidth+"px":jsonData.height+"rpx")+';'">
      <swiper class="SwiperIndex" indicator-dots="true" autoplay="true" interval="5000" duration="1000" :indicator-color="platformSetting.secondColor" :indicator-active-color="platformSetting.defaultColor">
        <block v-for="(item,index) in (jsonData.images)" :key="item">
          <swiper-item>
            <image :src="item.imageUrl||item" :data-link="item.linkUrl||item" @click="tolinkUrl"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>
  </block>
  <block v-else>
    <view class="SwiperContainer" :style="'height:'+(jsonData.height<10?jsonData.height * sysWidth+"px":jsonData.height+"rpx")+';'">
      <swiper class="SwiperIndex" indicator-dots="true" autoplay="true" interval="5000" duration="1000">
        <block v-for="(item,index) in (jsonData.images)" :key="item">
          <swiper-item>
            <image mode="aspectFit" :src="item.imageUrl||item"></image>
          </swiper-item>
        </block>
      </swiper>
    </view>
  </block>

</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/banner/firstBanner'

Component({})

export default global['__wxComponents']['partials/banner/firstBanner']
</script>
<style platform="mp-weixin">

</style>